import request from '@/utils/request'

// api地址
const api = {
	userInfo: '/api/user/getUserInfo',//用户信息
	bindPhone:'/api/settings/bind',
	getReceptionMessage:"/api/settings/getReceptionMessage",//查询是否接手推送消息
	setReception:"/api/settings/setReceptionMessage",//是否接收推送消息
	getUserRealStatus:'/api/user/getUserRealStatus',//获取实名信息
	updatePhone:'/api/settings/bindPhone',
	upPassword:'/api/settings/upPassword',
	getWithdrawType:'/api/user/getWithdrawType',//提现方式
	getWithdrawList:"/api/user/getWithdrawList",//提现列表
	setWithdrawAli:"/api/user/setWithdrawAli",//添加支付宝
	upWithdrawAli:'/api/user/upWithdrawAli',//修改支付宝账号
	delWithdrawAli:"/api/user/delWithdrawAli",//删除支付宝账号
	setWithdrawBank:"/api/user/setWithdrawBank",//添加银行卡
	upWithdrawBank:'/api/user/upWithdrawBank',//修改银行卡号
	delWithdrawBank:'/api/user/delWithdrawBank',
	setWithdrawWx:'/api/user/setWithdrawWx',
	delWithdrawWx:"/api/user/delWithdrawWx",//删除微信账户
	app_wx:'/api/my/getAppid',
	getJsonQrcode:'/api/index/getJsonQrcode',
	realUser:"/api/user/realUser",//初级实名
	aliAuthentication: '/api/user/aliAuthentication', //支付宝实名认证
	wxAuthentication: '/api/user/wxAuthentication', //微信实名认证
	getWithdrawNotice:'/api/settings/getWithdrawNotice',
	withdrawPrice:"/api/user/withdrawPrice", //余额提现
	WithdrawList:'/api/withdraw/getWithdrawList',
	getBalanceLog:"/api/Statistics/getBalanceLog",//资金明细
	getCardPrice:'/api/my/getCard',//获取产品价格
	connection:"/api/my/getContactUs",//联系我们
	get_hy:'/api/user/getMemberPrice',
	grade:'/api/user/members',
	buyMembers:'/api/user/buyMembers',
	submitFeedback:"/api/feed_back/index", //意见返款
	chToken:'/api/login/chToken',
	getstatus:'/api/my/getstatus',//微信小程序是否开启支付宝提现以及 微信提现是否在小程序添加账号
	closeAcc:'/api/user/closeAcc',//注销账号
	updateApp:'/api/index/updateApp',//更新App
	Antidirt:'/api/Antidirt/index',//字节跳动小程序敏感字输入检测
	bankListOne:'/api/Withdraw/bankListOne',//获取全部银行
	getBankName:'/api/Withdraw/getBankName',//实时获取银行名称
	user_code:'/api/user/user_code',//填写上级
	save_sms:'/api/user/save_sms',//不接收短信
	advertisement:'/api/index/advertisement',//广告
	advertisement_details:'/api/index/advertisement_details',//广告详情
	advertisement_number:'/api/index/advertisement_number',//广告点击/展示次数
	getNotice:'/api/Content/getNotice',
	sharePoster:'/api/share/sharePoster',
	getSumLog:'/api/Distribution/getSumLog',
	getSpread:"/api/Distribution/getSpread",//团队成员
	issue:'/api/my/getProblem',//常见问题'
	surveydesc:'/api/Survey/surveydesc',//快速结算问题
	duediligence:'/api/Survey/dueDiligence',//尽职调查
	surveyList:'/api/Survey/surveyList',//快速结算问题列表
	surveysubmitl:'/api/Survey/surveysubmit',//提交问题
	orderdetails:'/api/Survey/orderDetail',//快速结算订单查询
	settlementsubmit:'/api/Survey/settlementSubmit',//提交结算数据
	approvalStatus:'/api/Survey/approvalStatus',//查看结算状态
	dueDiligenceStatus:'/api/Survey/dueDiligenceStatus',//查看尽职调查状态
	getWithdrawAppId:'/api/user/getWithdrawAppId',
	shareMp:'/api/user/share',//分享
	getMiniToken:"/api/login/getMiniToken",//微信小程序授权登录（新）
	StatisticsRecord:'/api/Statistics/StatisticsRecord',//销卡统计
	buymemberspay:'/api/user/buymemberspay',//支付方式
	membertype:'/api/user/membertype',//查看会员是否关闭
	logouttype:'/api/user/logouttype',//注销信息
	recoveryuser:'/api/user/recoveryuser',//恢复注销
	timingIndex:'/timing/user/index',//自主注销
	logouecontent:'/api/user/logouecontent',//注销提示
	logoue:'/api/user/logoue',//当前注销状态
	getalipay:'/api/user/getalipay',//支付宝订单号支付
	getContent:'/api/Content/getContent',//协议接口
}
//公众号授权登录
export const authLogin = (param, option) => {
  return request.post('/api/login/index', param)
}
//第一次绑定手机
export const phone_obj = (param,option) => {
	return request.post("/api/settings/bind",param)
}
// 用户信息
export const userInfo = param => {
  return request.get(api.userInfo, param )
}
// 更新app
export const updateApp = param => {
  return request.get(api.updateApp, param )
}
// 绑定手机号
export const bindPhone = param => {
  return request.post(api.bindPhone, param )
}
// 注销账号
export const closeAcc = param => {
  return request.post(api.closeAcc, param )
}
// 查询是否接手推送消息
export const getReceptionMessage = param => {
  return request.post(api.getReceptionMessage, param )
}
// 是否接收推送消息
export const setReception = param => {
  return request.post(api.setReception, param )
}
// 获取实名信息
export const getUserRealStatus = param => {
  return request.get(api.getUserRealStatus, param )
}
// 修改绑定手机号
export const updatePhone = param => {
  return request.post(api.updatePhone, param )
}
// 修改密码
export const upPassword = param => {
  return request.post(api.upPassword, param )
}
// 提现方式
export const getWithdrawType = param => {
  return request.get(api.getWithdrawType, param )
}
// 提现账号列表
export const getWithdrawList = param => {
  return request.get(api.getWithdrawList, param )
}
// 提现记录
export const WithdrawList = param => {
  return request.get(api.WithdrawList, param )
}
// 添加支付宝
export const setWithdrawAli = param => {
  return request.post(api.setWithdrawAli, param )
}
// 修改支付宝
export const upWithdrawAli = param => {
  return request.post(api.upWithdrawAli, param )
}
// 删除支付宝
export const delWithdrawAli = param => {
  return request.post(api.delWithdrawAli, param )
}
// 添加银行卡
export const setWithdrawBank = param => {
  return request.post(api.setWithdrawBank, param )
}
// 修改银行卡
export const upWithdrawBank = param => {
  return request.post(api.upWithdrawBank, param )
}
// 删除银行卡
export const delWithdrawBank = param => {
  return request.post(api.delWithdrawBank, param )
}
// 添加微信账号
export const setWithdrawWx = param => {
  return request.post(api.setWithdrawWx, param )
}
// 删除微信账号
export const delWithdrawWx = param => {
  return request.post(api.delWithdrawWx, param )
}
// 获取提现appid
export const app_wx = param => {
  return request.get(api.app_wx, param )
}
// 获取二维码
export const getJsonQrcode = param => {
  return request.post(api.getJsonQrcode, param )
}
// 获取二维码
export const realUser = param => {
  return request.post(api.realUser, param )
}
// 支付宝高级
export const aliAuthentication = param => {
  return request.post(api.aliAuthentication, param )
}
// 微信高级
export const wxAuthentication = param => {
  return request.post(api.wxAuthentication, param )
}
// 获取提现详情
export const getWithdrawNotice = param => {
  return request.get(api.getWithdrawNotice, param )
}
// 微信高级
export const withdrawPrice = param => {
  return request.post(api.withdrawPrice, param )
}
// 获取提现详情
export const getBalanceLog = param => {
  return request.get(api.getBalanceLog, param )
}
// 获取产品价格
export const getCardPrice = param => {
  return request.get(api.getCardPrice, param )
}
// 联系我们
export const connection = param => {
  return request.get(api.connection, param )
}
// 联系我们
export const get_hy = param => {
  return request.get(api.get_hy, param )
}
//获取会员grade_id
export const grade = (param,option) => {
	return request.post(api.grade,param)
}
//会员购买
export const buyMembers = (param, option) => {
  return request.post(api.buyMembers, param)
}
//会员购买
export const submitFeedback = (param, option) => {
  return request.post(api.submitFeedback, param)
}
// 判断token是否生效
export const check_token = (param,option) =>{
	return request.post(api.chToken,param)
}
// 判断token是否生效
export const getstatus = (param,option) =>{
	return request.post(api.getstatus,param)
}
export const getWxShareSign = (param,option) => {
	return request.post("/api/share/getWxShareSign",param)
}
// // 注册
// export const register = param => {
//   return request.post(api.register, param )
// }
export const Antidirt = (param,option) =>{
	return request.post(api.Antidirt,param)
}
export const bankListOne = param => {
  return request.get(api.bankListOne, param )
}
// 获取银行名称 
export const getBankName = (data) => {
	return request.get(api.getBankName,data)
}
// 填写上级 
export const user_code = (data) => {
	return request.get(api.user_code,data)
}
// 接受或不接受短信通知 
export const save_sms = (data) => {
	return request.post(api.save_sms,data)
}
// 广告
export const advertisement = (data) => {
	return request.get(api.advertisement,data)
}
// 广告详情
export const advertisement_details = (data) => {
	return request.get(api.advertisement_details,data)
}
// 广告点击次数
export const advertisement_number = (data) => {
	return request.get(api.advertisement_number,data)
}
// 用户须知
export const getNotice = (data) => {
	return request.get(api.getNotice,data)
}
//二维码分享列表
export const sharePoster = (param, option) => {
  return request.post(api.sharePoster, param)
}
//今日返佣-累计-昨日
export const getSumLog = (param, option) => {
  return request.post(api.getSumLog, param)
}
//查询分销收入直推/间推 
export const getBalanceLog1 = (param, option) => {
  return request.post('/api/Distribution/getBalanceLog', param)
}
// 团队成员
export const getSpread = (param, option) => {
  return request.post(api.getSpread, param)
}
//提现记录
export const withdrawList = (param, option) => {
  return request.post(api.WithdrawList, param)
}
//常见问题
export const issue = (param, option) => {
  return request.get(api.issue, param)
}
export const surveydesc = (data) => {
	return request.get(api.surveydesc,data)
}
export const duediligence = (data) => {
	return request.post(api.duediligence,data)
}
export const surveyList = (data) => {
	return request.get(api.surveyList,data)
}
export const surveysubmitl = (data) => {
	return request.post(api.surveysubmitl,data)
}
export const orderdetails = (data) => {
	return request.get(api.orderdetails,data)
}
export const settlementsubmit = (data) => {
	return request.post(api.settlementsubmit,data)
}
export const approvalStatus = (data) => {
	return request.get(api.approvalStatus,data)
}
export const dueDiligenceStatus = (data) => {
	return request.get(api.dueDiligenceStatus,data)
}
// 绑定微信提现获取appid接口 
export const getWithdrawAppId = (param,option) => {
	return request.post(api.getWithdrawAppId,param)
}

export const shareMp = (param,option) => {
	return request.get(api.shareMp,param)
}
// 微信小程序授权登录
export const getMiniToken = (param,option) => {
	return request.post(api.getMiniToken,param)
}

export const StatisticsRecord = (param,option) => {
	return request.get(api.StatisticsRecord,param)
}
export const buymemberspay = (param,option) => {
	return request.post(api.buymemberspay,param)
}
export const membertype = (param,option) => {
	return request.get(api.membertype,param)
}
export const logouttype = (param,option) => {
	return request.post(api.logouttype,param)
}
export const recoveryuser = (param,option) => {
	return request.post(api.recoveryuser,param)
}
export const timingIndex = (param,option) => {
	return request.post(api.timingIndex,param)
}
export const logouecontent = (param,option) => {
	return request.post(api.logouecontent,param)
}
export const logoue = (param,option) => {
	return request.post(api.logoue,param)
}
export const getalipay = (param,option) => {
	return request.post(api.getalipay,param)
}
export const getContent = (param,option) => {
	return request.get(api.getContent,param)
}